﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>EMPOWER</title>
    <link href="Styles/Style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
/*多语言切换*/
.multilan{margin-top: 16px;_margin-right:10px; position: relative;}
.dd {background-color:#fff;float: left;font-size: 12px;text-align: left;}
.dd .ddTitle {/*background:#f2f2f2;*/border:1px solid #c3c3c3;cursor: default;height: 13px;line-height: 13px;overflow: hidden;padding: 3px;text-indent: 0;}
.dd .ddTitle span.arrow {background:url(images/dd_arrow.png) no-repeat 0 -2px;cursor: pointer;display: inline-block;float: right;height: 16px;font-weight: bold;width: 16px;}
.dd .ddTitle span.ddTitleText {color: #F08B17;line-height: 12px;overflow: hidden;padding-right: 6px;text-indent: 1px;font-weight: 700;}
.dd .ddTitle span.ddTitleText img{padding: 0 8px 1px 0;text-align: left; border: 0 none;}
.dd .ddChild {border:1px solid #c3c3c3;background-color:#ffffff;box-shadow: 0 0 6px #777777;display: none;margin: 0;min-width: 110px;overflow-x: hidden !important;overflow-y: auto;padding: 5px 8px;position: absolute;right: 0;top: 22px;z-index: 1;}

.dd .ddChild a {color:#000; cursor: pointer; display: block;overflow: hidden;padding: 5px 0 5px 3px;text-decoration: none;white-space: nowrap;font-weight: 700;}
.dd .ddChild a img{border: 0 none;padding: 2px 8px 0 0;vertical-align: middle;}
.dd .ddChild a:hover {background: none repeat scroll 0 0 #c8e4ff;border: 1px solid #F9F9F9;box-shadow: 0 0 6px #777777;}
</style>

    <script type="text/javascript" language="javascript" src="Scripts/jquery-1.4.4.min.js"></script>

    <script type="text/javascript" src="Scripts/hoverIntent.js"></script>

    <script language="javascript">
        function checkForm() {
            if (document.all.txtLoginName.value == "") {
                alert("登录名不能为空");
                document.all.txtLoginName.focus();
                return false;
            }
            if (document.all.txtPassword.value == "") {
                alert("密码不能为空");
                document.all.txtPassword.focus();
                return false;
            }
            if (document.all.txtValidateCode.value == "") {
                alert("验证码不能为空");
                document.all.txtValidateCode.focus();
                return false;
            }

            return true;
        }  
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="page" id="pall">
            <div class="page_top">
                <div class="top_left">
                    <img src="<%=BLL.Common.Contexts.AdminPath %>/images/logo.gif" alt="EMPower" /></div>
                <ul class="top_center" style="margin-right: 10px;">
                    <li>used IP:<%=ipAddress%>to access.</li>
                </ul>                
            </div>
            <div class="right_middle">
                <div class="columnborder">
                    <div class="logincolumn">
                        <div class="column130">
                            <img src="images/psicon.gif" />
                        </div>
                        <div class="column450">
                            <div class="errorinfo">
                                <div class="errortitle bord09" id="div_errorInfo" runat="server" visible="false">
                                    <span class="iconJ"></span><span class="errorcon">
                                        <asp:Literal ID="errorMessage" runat="server"></asp:Literal></span>
                                </div>
                            </div>
                            <div class="blank5">
                            </div>
                            <div class="clear">
                            </div>
                            <ul class="loginlist">
                                <li class="first"><span class="warning">
                                    <img src="images/warn.gif" /></span><span>用户名：</span></li>
                                <li>
                                    <asp:TextBox ID="txtLoginName" runat="server" onblur="this.style.backgroundColor = '#FFFFFF'"
                                        onfocus="this.style.backgroundColor = '#F3F3F3'" style="width:260px;"></asp:TextBox></li>
                                <li><span class="warning">
                                    <img src="images/warn.gif" /></span><span>
                                        密码
                                        ：</span></li>
                                <li>
                                    <asp:TextBox ID="txtPassword" runat="server" onblur="this.style.backgroundColor = '#FFFFFF'"
                                        onfocus="this.style.backgroundColor = '#F3F3F3'" TextMode="Password" style="width:260px;"></asp:TextBox></li>
                                <li><span class="warning">
                                    <img src="images/warn.gif" /></span><span>验证码：</span></li>
                                <li>
                                    <asp:TextBox ID="txtValidateCode" runat="server" onblur="this.style.backgroundColor = '#FFFFFF'"
                                        onfocus="this.style.backgroundColor = '#F3F3F3'" autocomplete="off"></asp:TextBox><span class="yzmimg"><img
                                            id="valiImg" src="<%=BLL.Common.Contexts.AdminPath %>/ValidateCode.aspx" /></span><span class="yzmlink"><a href="#"><a
                                                href="javascript:document.getElementById('valiImg').src='<%=BLL.Common.Contexts.AdminPath %>/ValidateCode.aspx?'+new Date;void(0);">
                                                <%=validateCodeRefresh %>
                                            </a></a></span></li>
                                <li>
                                    <input type="checkbox" id="Checkbox1" name="rememberPassword" class="cb" runat="server" /><span
                                        class="cbtext">记住用户名</span></li>
                            </ul>
                            <div class="clear">
                            </div>
                            <div style="margin-top: 5px; margin-bottom: 10px;">
                                <span>
                                    <asp:LinkButton ID="btnSubmit" runat="server" class='btnStyle2' Style="width: 80px;
                                                height: 24px;margin-right:6px;" OnClick="btnSubmit_Click" Text="登陆"></asp:LinkButton>
                                 </span> 
                                 <span>
                                            <asp:LinkButton ID="reset" runat="server" class='btnStyle2' Style="width: 80px;
                                                height: 24px" OnClick="reset_Click" Text="重置"></asp:LinkButton>
                                 </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
